package com.dingli.shop.impl;

import com.dingli.shop.biz.OrderBiz;
import com.dingli.shop.po.OrderVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrderBizImpl implements OrderBiz {
    @Autowired
    private OrderBiz orderBiz;
    @Override
    public List<OrderVO> queryOrder(Map map) {
        try {
            return orderBiz.queryOrder(map);
        } catch (Exception e) {
            return null;
        }
    }

    @Override
    public OrderVO findOrder(Integer id) {
        try {
            return orderBiz.findOrder(id);
        } catch (Exception e) {
            return null;
        }
    }

    @Override
    public Integer numOrder() {
        try {
            return orderBiz.numOrder();
        } catch (Exception e) {
            return null;
        }
    }

    @Override
    public int updateAddress(Map map) {
        try {

            return orderBiz.updateAddress(map);
        } catch (Exception e) {
            return 0;
        }
    }
}
